package main

import (
	"fmt"
	"sort"
	"strings"
	"time"
)

func main() {

	//对切片进行排序
	s := []int{345, 78, 123, 10, 76, 2, 567, 5}
	sort.Ints(s)
	fmt.Println("排序后的切片: ", s)

	// 查找索引值
	fmt.Println("索引值为: ", strings.Index("nhooo", "oo"))

	//显示当前时间戳
	fmt.Println("时间戳: ", time.Now().Unix())

}
